import os

import django
from celery import Celery
app = Celery("sms")
os.environ.setdefault(
    "DJANGO_SETTINGS_MODULE",
    "djangoProject.settings"
)
django.setup()
app.config_from_object('mycelery.config')
app.autodiscover_tasks(['mycelery.sms',])
